package cn.kgc.gatewayzuul.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName InfoController
 * @Description TODO
 * @Author yaozhaobao
 * @Date 2021/1/23 14:48
 * @Version 1.0
 **/

@RestController
@RefreshScope
public class InfoController {

    @Value("${hello.name}")
    private String port;

    @RequestMapping("/info")
    public String info(){
        return  port;
    }




}
